package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ljj
 * @create 2022-11-16-15:07
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    public List<DishDto> getDishInfo(@Param("name") String name);

    public DishDto getByIdWithFlavor(@Param("id") Long id);

    List<DishDto> getDishDtoInfoByDish(Dish dish);
}
